Release 10.1A: OpenEdge Development:
Web Services
Setting up the PscObjectIDHandler objects
After you have completed the Web service object setup (see the "Setting up the Web service objects" section) that creates the
OrderInfoObjStubandCustomerOrderObjStubobjects, you can create and register thePscObjectIDHandlerandHandlerControlBlockobjects for both theOrderInfoandCustomerOrderOpen Client objects.The following steps create and register a unique handler for each Open Client object so it can automatically insert its corresponding object ID into outgoing SOAP requests without intervention by the client application.
![]()
To create and register a unique handler for each Open Client object:
- Set the
<portType>element name specified in the WSDL for theOrderInfoObjStubso aPscObjectIDHandlercan be bound to it. For example:Note: Apache Axis does not automatically obtain the
<portType>element name from the WSDL document when it generates the client interface classes.- Set the
<portType>element name specified in the WSDL for theCustomerOrderObjStubso aPscObjectIDHandlercan be bound to it. For example:Note: Apache Axis does not automatically obtain the
<portType>element name from the WSDL document when it generates the client interface classes.- Declare the Open Client object names that the
PscObjectIDHandlerobjects will use to scan for object IDs in SOAP response headers returned from the WSA. For example:Note: Both the
"OrderInfo"and"CustomerOrder"object names are included because the object IDs for both are returned from factory methods contained in the OrderInfo AppObject.- Call the
PscObjectIDHandlerbuilt-in factory method to create and register aPscObjectIDHandlerobject for the"OrderInfoPort"<portType>element. The handler is set to scan for and record the object ID values for theOrderInfoandCustomerOrderOpen Client objects. This automatically creates and binds aHandlerControlBlockobject to thePscObjectIDHandlerobject, returning a reference for it to the client application, as shown:
- Call the
PscObjectIDHandlerbuilt-in factory method to create and register aPscObjectIDHandlerobject for the"CustomerOrderPort"<portType>element. The handler is set to scan for and record the object ID values for theOrderInfoandCustomerOrderOpen Client objects. This automatically creates and binds aHandlerControlBlockobject to thePscObjectIDHandlerobject, returning a reference for it to the client application, as shown:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |